<oc-dialog oc-dialog-switch="MS"
	oc-dialog-icon="position"
	style="width:29.2rem;"
	oc-dialog-title="编辑职位">
	<div class="grid" ng-controller="PositionEdit">
		<fieldset class="oc-legend" style="top:0;left:.3rem;width:9rem;bottom:2rem">
			<legend>职位信息</legend>
			<label style="top:.5rem;left:.3rem" for="position-name">职位名称：</label>
			<input type="text" style="top:1.5rem;left:.3rem;width:8.3rem"
				ng-model="position.name" id="position-name">
			<label style="top:2.8rem;left:.3rem" for="position-comment">职位注释：</label>
			<textarea ng-model="position.comment"
				style="top:3.8rem;left:.3rem;width:8.3rem;max-width:8.3rem;
				max-height:2.7rem;height:2.7rem" id="position-comment"></textarea>
		</fieldset>
		<fieldset class="oc-legend" style="top:0;left:9.6rem;bottom:2rem;width:9rem">
			<legend>角色</legend>

			<div class="oc-list"
				style="right:.3rem;bottom:.3rem;top:0.5rem;left:0.3rem;border:1px solid #ccc">
				<header class="oc-list-header" style="left:0">
					<label style="width:160px;"
						title="数据对象">角色名<hr></label>
				</header>
				<section class="oc-list-inner">
					<table>
						<thead>
							<tr>
								<th><div style="width: 160px;"></div></th>
							</tr>
						</thead>
						<tbody>
							<tr ng-repeat="r in rolesOfTeam">
								<td><div><input type="checkbox"
									ng-model="roleChecked[r.roleId]" />{{r.name}}</div></td>
							</tr>
						</tbody>
					</table>
				</section>
			</div>
		</fieldset>
		<fieldset class="oc-legend" style="top:0;right:.3rem;width:10rem;bottom:2rem">
			<legend>其它权限</legend>

			<div class="oc-list"
				style="left:.3rem;right:.3rem;top:0.5rem;bottom:.3rem;border:1px solid #ccc">
				<header class="oc-list-header" style="left:0">
					<label style="width: 100px;"
						title="数据对象">数据对象<hr></label>
					<label style="width: 65px;"
						title="操作">操作<hr></label>
				</header>
				<section class="oc-list-inner">
					<table>
						<thead>
							<tr>
								<th><div style="width: 100px;"></div></th>
								<th><div style="width: 65px;"></div></th>
							</tr>
						</thead>
						<tbody>
							<tr ng-repeat="(id, p) in privilege">
								<td><div><input type="checkbox"
									ng-model="privilegeChecked[id]" />{{p.module}}</div></td>
								<td><div>{{p.action}}</div></td>
							</tr>
						</tbody>
					</table>
				</section>
			</div>

		</fieldset>
		<button style="left:.3rem;width:4.3rem;height:1.4rem;bottom:.3rem"
			ng-click="fuck()">预设</button>
		<button style="right:5rem;width:4.3rem;height:1.4rem;bottom:.3rem"
			ng-click="savePosition()">确定</button>
		<button style="height:1.4rem;width:4.3rem;bottom:.3rem;right:.3rem"
			oc-dialog-close>取消</button>
	</div>
</oc-dialog>
